import request from "@/utils/axios/request";

const uploadFile = (file: File) => {
  const formData = new FormData();
  formData.append('file', file);
  return request({
    url: '/setting/updateDocxFile',
    method: 'POST',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  });
}

const getDocxFile = () => {
  return request.get('/setting/getDocxFile')
}

const settingApi = {
  uploadFile,
  getDocxFile
}

export default settingApi